﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<VERKProjectHopur16.Models.Child>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AllChild
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>All Childs</h2>

    <div class="admincontentlist">
        <table>
            <thead>
                <tr>
                    <th><%= Html.ActionLink("Name", "OrderChild", new { id = 1 })%></th>
                    <th><%= Html.ActionLink("Username", "OrderChild", new { id = 2 })%></th>
                    <th><%= Html.ActionLink("Created", "OrderChild", new { id = 3 })%></th>
                    <th><%= Html.ActionLink("Timeline password", "OrderChild", new { id = 4 })%></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <% foreach (var item in Model)
                   { %>
                <tr>
                    <td><%: item.Name%></td>
                    <td><%: item.aspnet_Membership.aspnet_User.UserName%></td>
                    <td><%: item.Created%></td>
                    <td><%: item.ProfilePassword %></td>
                    <td><input type="button" onclick="document.location.href = '<%: Url.Action("RemoveChild", new { id = item.ChildID }) %>'" value="Delete" /></td>
                </tr>
                <% } %>
            </tbody>
        </table>
    </div>
</asp:Content>
